<template>
    <el-card>
        <div class="box">
            <img :src="userStore.avatar" alt="" class="avatar" />
            <div>
                <h3 class="title">{{ getTime() }} {{ userStore.username }} </h3>
                <p>硅谷甄选运营平台</p>
            </div>
        </div>
    </el-card>

    <div class="bottom">
        <svg-icon name="welcome" width="400px" height="300px">
        </svg-icon>
    </div>

</template>

<script setup lang='ts' name='home'>
import useUserStore from '@/store/modules/user';
import { getTime } from '@/utils/time';

let userStore = useUserStore();

</script>

<style scoped lang='scss'>
.box {
    display: flex;
    align-items: center;
}

.title {
    font-size: 30px;
    margin-bottom: 10px;
}

.avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-right: 20px;
}

.bottom {
    display: flex;
    justify-content: center;
}
</style>